package chen.web.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.Assert;

import chen.web.forum.ForumAccount;
import chen.web.forum.ForumAccountLoader;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"/test.xml"})
public class ForumAccountLoaderTesting {

	@Autowired
	ForumAccountLoader loader;
	
	@Test
	public void load(){
		ForumAccount acc = loader.loadForumAccount(1);
		Assert.notNull(acc);
		
	}
	
}
